package com.core.transaction;

import javax.enterprise.context.ApplicationScoped;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

@ApplicationScoped
public class EntityManagerClass {

	private static final String ENTITY_MANAGER = "aqarat";
	
	public static javax.persistence.EntityManagerFactory getEntityManagerFactory(){
		 EntityManagerFactory emf = Persistence.createEntityManagerFactory(ENTITY_MANAGER);
//		 javax.persistence.EntityManager em = emf.createEntityManager();
	        return emf;
	
	}
}
